package com.flyox.game.militarychess.message;

import java.io.Serializable;
import java.util.Hashtable;

import com.flyox.game.militarychess.bean.ChessDesk;
import com.flyox.game.militarychess.bean.ChessMan;
import com.flyox.game.militarychess.bean.Position;

/**
 * 广播包的组装方式
 * @author sunwei
 */
public class BoardBean implements Serializable {

	private static final long serialVersionUID = 9091342841662144096L;
	private int responseType;// 广播类型
	private Hashtable<Integer, ChessDesk> desks;// 房间中的所有 桌面 信息
	private ChessDesk chessDesk;//单个桌子的信息
	
	private ChessMan[][] layout;
	
	private Position from;
	private Position to;
	
	private int chessManStates;//吃子后棋子状态
	private int seatStates;//个人状态
	private int teamStates;//队伍状态
	
	private String message;
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public int getChessManStates() {
		return chessManStates;
	}
	public void setChessManStates(int chessManStates) {
		this.chessManStates = chessManStates;
	}
	public int getSeatStates() {
		return seatStates;
	}
	public void setSeatStates(int seatStates) {
		this.seatStates = seatStates;
	}
	public int getTeamStates() {
		return teamStates;
	}
	public void setTeamStates(int teamStates) {
		this.teamStates = teamStates;
	}
	public ChessMan[][] getLayout() {
		return layout;
	}
	public void setLayout(ChessMan[][] layout) {
		this.layout = layout;
	}
	public ChessDesk getChessDesk() {
		return chessDesk;
	}
	public void setChessDesk(ChessDesk chessDesk) {
		this.chessDesk = chessDesk;
	}
	public BoardBean(int responseType){
		this.responseType=responseType;
	}
	public int getResponseType() {
		return responseType;
	}

	public void setResponseType(int responseType) {
		this.responseType = responseType;
	}

	public Hashtable<Integer, ChessDesk> getDesks() {
		return desks;
	}

	public void setDesks(Hashtable<Integer, ChessDesk> desks) {
		this.desks = desks;
	}
	public Position getFrom() {
		return from;
	}
	public void setFrom(Position from) {
		this.from = from;
	}
	public Position getTo() {
		return to;
	}
	public void setTo(Position to) {
		this.to = to;
	}

}
